import { axios } from '@/utils/request'

export function queryShip (parameter) {
  return axios({
    url: 'ship/query',
    method: 'post',
    data: parameter
  })
}

export function queryShipInPort (parameter) {
  return axios({
    url: 'ship/queryShip',
    method: 'post',
    data: parameter
  })
}
export function addShip (parameter) {
  return axios({
    url: 'ship/add',
    method: 'post',
    data: parameter
  })
}

export function editShip (parameter) {
  return axios({
    url: 'ship/update',
    method: 'post',
    data: parameter
  })
}

export function removeShip (parameter) {
  return axios({
    url: 'ship/remove',
    method: 'post',
    data: parameter
  })
}

export function leaveShip (parameter) {
  return axios({
    url: 'ship/leave',
    method: 'post',
    data: parameter
  })
}

export function queryHistory (parameter) {
  return axios({
    url: 'ship/queryLeave',
    method: 'post',
    data: parameter
  })
}
